package com.slg.mapper;

import com.slg.entity.dto.EmployeeDto;
import com.slg.entity.dto.SalaryDto;
import com.slg.entity.pojo.Employee;
import com.slg.entity.pojo.Salary;
import com.slg.entity.pojo.Shenqing;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminiMapper {
//1.1用户管理操作
    List<Employee> queryEmployee(Employee employee);
//1.2工资类型管理
    List <Salary> querySalary (Salary salary);
//
    Employee login (Employee employee);
//2.2工资信息管理
    List<SalaryDto> querySalaryDto(Salary salary);
//    List<Employee>queryUsername(Employee employee);
//3.2报销申请
    Integer setBaoXiao(Integer baoxiao,Integer id);
//3.1查询本人信息
    Salary querySalaryByOne(Integer id);

    List<Salary> queryDatabase();

    List<Shenqing> queryDatabase1();

    int updateException( Shenqing employeeDto);

    int updateEmployee(Employee employee);

    int updateSalary1(SalaryDto salaryDto);

    int deleteEmployee(int id);

    int deleteEmployee1(int id);

    int add(Employee employee);

    int add1(SalaryDto salaryDto);


    int jujube(int id);

    int updateSalary3(int id);

    Employee getUserByUserName(String userName);

    int add2(SalaryDto salaryDto);
}
